package com.zer0.tga.math;


// a rectangular area which is defined by 
// its starting point x0,y0 and its ending point x1,y1
//
//            y0
//           _ _ _
//          |     |
//       x0 |     | x1
//          |     |
//           _ _ _  
//            y1
//


public class Box {
	
	public int x0;

	public int y0;
	
	public int x1;
	
	public int y1;
	
	
	public Box(double x0, double y0, double x1, double y1)
	{
		this.x0 = (int)Math.floor(x0);
		this.y0 = (int)Math.floor(y0);
		
		this.x1 = (int)Math.floor(x1);
		this.y1 = (int)Math.floor(y1);
		
	}
	
	
	public Box(Coordinate c0, Coordinate c1)
	{
		this(c0.x,c0.y,c1.x,c1.y);
		/*this.x0 = c0.x;
		this.y0 = c0.y;
		
		this.x1 = c1.x;
		this.y1 = c1.y;	*/
	}

}
